package com.czwj.dao;

import java.util.List;
import java.util.Map;

import com.czwj.entities.Jobber;
import com.czwj.entities.Role;

public interface RoleMapper{
	int deleteByPrimaryKey(Integer id);
	
	int insert(Role record);
	
	int insertSelective(Role record);
	
	Role selectByPrimaryKey(Integer id);
	
	int updateByPrimaryKeySelective(Role record);
	
	int updateByPrimaryKey(Role record);
	
	List<Role> getAll();
	/**
	* @Title: getSummaryRoles
	* @Description: TODO
	* @return 参数 
	* @return List<Role> 返回类型
	* @throws
	*/
	List<Role> getSummaryRoles(Map<String,Object> params);

	/**
	* @Title: getSummaryRolesCount
	* @Description: TODO
	* @param params
	* @return 参数 
	* @return int 返回类型
	* @throws
	*/
	int getSummaryRolesCount(Map<String,Object> params);

	/**
	* @Title: findByName
	* @Description: TODO
	* @param rolename
	* @return 参数 
	* @return Jobber 返回类型
	* @throws
	*/
	Role findByName(String rolename);
}
